<?php
// +----------------------------------------------------------------------
// | Created by PHPstorm: [ JRK丶Admin ]
// +----------------------------------------------------------------------
// | Copyright (c) 2019~2022 [LuckyHHY] All rights reserved.
// +----------------------------------------------------------------------
// | SiteUrl: http://www.luckyhhy.cn
// +----------------------------------------------------------------------
// | Author: LuckyHhy <jackhhy520@qq.com>
// +----------------------------------------------------------------------
// | Date: 2020/7/17 0026
// +----------------------------------------------------------------------
// | Description:
// +----------------------------------------------------------------------


namespace app\common\subscribes;


use app\common\model\tang\BalanceLog;
use app\common\model\tang\Cost;
use app\common\model\tang\Merchant;
use think\facade\Queue;

class updateBalanceSubscribe extends Base
{
    /**
     * 定时执行的方法
     */
    public function onupdateBalance()
    {

        $merchantModel = (new Merchant())->field('id,code')->select();
        foreach ($merchantModel as $row){
            upMerchantAuto($row['id']);
        }
    }

}